(in-package :spring)

(defbean "simple-bean1" "java.lang.String")

(defbean "simple-bean2" "java.lang.String"
  :constructor-args ("literal"))
  
(defbean "simple-bean3" "java.lang.String"
  :constructor-args ((ref "simple-bean2")))
  
(defvar *switch* nil)  
  
(if *switch*
  (defbean "simple-bean4" "java.lang.String"
    :constructor-args ("true"))
  (defbean "simple-bean4" "java.lang.String"
    :constructor-args ("false")))